﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.workers.transactions {
    import flash.events.*;
    import Modules.workers.*;

    public class TWorkersSync extends TWorkersTransaction {

        protected var m_workerManager:WorkerManager;

        public function TWorkersSync(_arg1:String, _arg2:WorkerManager){
            this.m_workerManager = _arg2;
            super(_arg1);
        }
        override public function perform():void{
            signedCall("WorkerService.syncWorkers");
        }
        override protected function onComplete(_arg1:Object):void{
            if (((this.m_workerManager) && (_arg1))){
                this.m_workerManager.cleanUp();
                this.m_workerManager.loadObject(_arg1.workers);
            };
            dispatchEvent(new Event(Event.COMPLETE));
        }

    }
}//package Modules.workers.transactions 
